module.exports = {
    //字典
    dicts: {
        campus: [{
            label: "花津校区", value: '1'
        }, {
            label: "赭山校区", value: '2'
        }, {
            label: "天门山校区", value: '3'
        }],
        subjects: [
            {
                //学科名
                label: '计算机基础', //学科编码
                value: '0007110140'
            },
            {
                //学科名
                label: '计算机导论', //学科编码
                value: '0057110140'
            }
        ],
    }, //列定义
    columnDefines: {
        campus: {
            label: '校区', prop: 'campus', type: 'select', dicData: ['campus'],
            search: true,
        },
        major: {
            label: '专业', prop: 'major', type: 'input', search: true,
        },
        studentId: {
            label: '学号', prop: 'studentId', type: 'input', search: true,
        },
        studentName: {
            label: '学生姓名', prop: 'studentName', type: 'input', search: true,
        },
        teacherName: {
            label: '授课教师', prop: 'teacherName', type: 'input', search: true,
        },
        subjectName: {
            label: '学科', prop: 'subjectName', type: 'select', search: true,
            dicData: ['subjects'],
        },
        examId: {
            label: '准考证号', prop: 'examId', type: 'template', search: true,
            //模板
            source: "{batchId}{studentId}"
        },
        startTime: {
            label: '开始时间', prop: 'startTime', type: 'datetime', search: true,
            pattern: 'YYYY-MM-DD HH:mm'
        },
        endTime: {
            label: '结束时间', prop: 'endTime', type: 'datetime', search: true,
            pattern: 'YYYY-MM-DD HH:mm'
        },
        examArea: {
            label: '考试地点', prop: 'examArea', type: 'template', search: true,
            source: "{campusName}{examHallName}"
        },
        examHall: {
            label: '考场', prop: 'examHall', type: 'select', search: true,
        },
        className: {
            label: '班级', prop: 'className', type: 'input', search: true,
        },
        subjectCategory: {
            label: '学科类别', prop: 'subjectCategory', type: 'input', search: true,
        }

    }, //列映射
    columnsMap: {
        campus: ['校区'],
        studentId: ['学号', "学生唯一ID"],
        studentName: ['姓名', '中文姓名'],
        major: ["专业"],
        subjectName: ["课程代码"],
        className: ["班级"],
        examArea: ["考试地点", "考场地址"],
        subjectCategory: ['学科类别'],
        teacherName: ['教师姓名', '授课教师'],
    },
    variable: {
        //批次号
        batchId: {}
    },
    //考场配置
    examHalls: [
        {
            //校区
            campus: '1', name: "行知楼6号楼404", code: "2060404", //容量
            capacity: 100,
            //TODO 是否开启 关闭则不会分配考生考试
            open: true,
            //TODO 支持哪些科目考试
            subjects: ["0007110140"]
        },
        {
            //校区
            campus: '1', name: "行知楼6号楼403", code: "2060403", //容量
            capacity: 100,
            open: true,

        },
        {
            //校区
            campus: '2', name: "计算中心二楼201机房", code: "201", //容量
            capacity: 100,
            open: true,
        },
        {
            //校区
            campus: '2', name: "计算中心二楼202机房", code: "202", //容量
            capacity: 100,
            open: true,
        }
    ],
    examHallMap: {},
    //导出配置
    exportConfig: {
        fileName: "[{subject}]考场安排-{nowStr}",
        //导出列
        exportColumn: ["teacherName", "studentId", "studentName", "examId", "major",
            "subjectName", "startTime", "endTime", "examArea"]
    },
    //考场分配配置
    arrangeConfig: {
        globalTimeSetting: {
            //每场考试时间
            examTimeStep: '01:00',
            //两场考试时间间隔
            examTimeSpan: '00:20',
            //考试的时间范围
            examTimeRange: ["08:00", "20:00"],
            excludeTimeRanges: [
                {
                    excludeTimeRange: ["12:00", "14:00"]
                }
            ]
        },
        subjectSetting: {
            "0057110140": {
                // startDate: '开始日期',
                //时间配置
                timeSetting: {
                    //考试的日期
                    examDates: [],
                    //每场考试时间
                    examTimeStep: '01:00',
                    //两场考试时间间隔
                    examTimeSpan: '00:20',
                    //考试的时间范围
                    examTimeRange: ["08:00", "20:00"],
                    excludeTimeRanges: [
                        {
                            excludeTimeRange: ["20:39", "21:39"]
                        }
                    ]
                }
            }
        },
    }
}